<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向绑定</title>
</head>
<body>

<div id="app">
    <textarea name="" id="" cols="30" rows="10" v-model="message"></textarea>
    输入的文本：<input type="text" v-model="message">
    {{message}}

    <input type="radio" name="sex" value="男" v-model="qinjiang">男
    <input type="radio" name="sex" value="女" v-model="qinjiang">女

    <p>
        选中了谁：{{qinjiang}}
    </p>

    下拉框：
    <select  v-model="selected">
        <option value="" disabled></option>
        <option>A</option>
        <option>B</option>
        <option>C</option>
    </select>

    <span>value:{{selected}}</span>

</div>

<!--1.导入vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            message: "123",
            // checked: false,
            qinjiang: '',
            selected:''
        }
    });
</script>
</body>
</html>